<template>
  <div>
    <h1><slot></slot></h1>

    <state1>直接访问</state1>
    <state2>state → 组件的 computed</state2>
  </div>
</template>

<script>
import State1 from './State1.vue'
import State2 from './State2.vue'

export default {
  name: 'State',
  components: {
    State1,
    State2
  }
}
</script>
